package br.com.syshealth.clinica.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;




/**
 * Entity implementation class for Entity: Medico
 *
 */
@Entity
@DiscriminatorValue(value="Medico")
public class Medico extends Pessoa implements Serializable {

	
	private static final long serialVersionUID = 1L;

	// ta faltando algumas coisas aqui

	private String crm;
	
	@OneToMany(mappedBy="id_medico", targetEntity = Agenda.class,cascade= CascadeType.ALL)
	private List<Agenda> listAgenda = new ArrayList<Agenda>();
	

	public String getCrm() {
		return crm;
	}
	public void setCrm(String crm) {
		this.crm = crm;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public List<Agenda> getListAgenda() {
		return listAgenda;
	}
	public void setListAgenda(List<Agenda> listAgenda) {
		this.listAgenda = listAgenda;
	}
	
}
